package com.mc.service;

import java.util.List;

import com.mc.model.newsandbulletin;

public interface NewsandbulletService {
	  int deleteByPrimaryKey(Integer id);

	    int insert(newsandbulletin record);

	    int insertSelective(newsandbulletin record);

	    newsandbulletin selectByPrimaryKey(Integer id);

	    int updateByPrimaryKeySelective(newsandbulletin record);

	    int updateByPrimaryKeyWithBLOBs(newsandbulletin record);

	    int updateByPrimaryKey(newsandbulletin record);
	    
	    void insertNorB(newsandbulletin record);
	    
	    List<newsandbulletin> selectAllNews();
	    
	    List<newsandbulletin> selectAllBulletin();
	    
	    int selectAllNewsCount();
	    
	    int selectAllBulletinCount();
	    
	    void updateNorB(newsandbulletin nb);

	    
	    /**
	     * 获取首页新闻
	     * @return
	     */
	    public List<newsandbulletin> getIndexNews();
	    
	    public List<newsandbulletin> GetNewsByType(String type);
	    
	    public List<newsandbulletin> getBulletinByType(String type);
	    
	    public int CountNewsByType(String type);
		
		public int CountBulletinByType(String type);
		
		public List<newsandbulletin> getCommonBulletin(int page,int pageSize);
		
		public List<newsandbulletin> getCommonNews(int page,int pageSize);

}
